<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta name="generator" content="notepad">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="description" content="<?php echo input(strip_tags($conf['Pavadinimas']).' - '.trimlink(strip_tags($conf['Apie']),120)); ?>">
  <meta name="keywords" content="<?php echo input(strip_tags($conf['Keywords'])); ?>">
  <meta name="author" content="<?php echo input(strip_tags($conf['Copyright'])); ?>">
  <link rel="stylesheet" type="text/css" href="stiliai/system.css">
  <link rel="stylesheet" type="text/css" href="stiliai/<?php echo input(strip_tags($conf['Stilius'])); ?>/default.css">
  <link rel="shortcut icon" href="favicon.ico" />
  
  <title><?php echo input(strip_tags($conf['Pavadinimas']).' - '.$page); ?></title>

  <script language="javascript" type="text/javascript" src="javascript/swfobject.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/lib/prototype.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/scriptaculous/src/scriptaculous.js"></script>
  <script language="javascript" type="text/javascript" src="javascript/pagrindinis.php"></script>
  <?php if ($id == 46 || $id == 8) { ?>
  <script language="javascript" type="text/javascript" src="javascript/htmlarea/tiny_mce/tiny_mce.js"></script>
  <?php } ?>
</head>

<body>
<NOSCRIPT>
 <?php klaida("Klaida","Prašome įjunkite javascript palaikymą"); ?>
 <meta http-equiv="refresh" content="0;url=javascript.html">
</NOSCRIPT>

<script language="javascript" type="text/javascript" src="javascript/hl/shCore.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushPhp.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushJScript.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushSql.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushXml.js"></script>
<script language="javascript" type="text/javascript" src="javascript/hl/shBrushCss.js"></script>

<div><div class="main">
  <table border="0" width="100%" cellpadding="2" cellspacing="5">
    <tr>
      <td height="123" colspan="3">
	    <h4 style="display:none"><?php echo $conf['Pavadinimas']; ?></h4>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td  >
					<div id="mygtukaii">
						<a href="?">Titulinis</a>

						<a href="?id,6">Siųstis</a>
						<a href="?id,22">Straipsniai</a>
						<a href="?id,25">Forumas</a>
						<a href="?id,9">Nuorodos</a>
						<a href="?id,5">Apie</a>

						<a href="?id,8">D.U.K.</a>
					</div>
	           </td>
          </tr>
         <tr>
           <th scope="col" style="background-image:url(stiliai/default/images/hdr_bg.jpg)"><img src="stiliai/default/images/hdr_right.jpg" align="right" /><a href="?"><img src="stiliai/default/images/hdr_left.jpg" border="0" align="left" /></a><img src="stiliai/default/images/bug.gif" /></th>
         </tr>
         <tr>
           <td class="title" scope="col">
             <marquee  behavior='scroll' scrollamount='1' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()' align='center'>
					Čia gali būti jūsų bėganti reklama
				 </marquee>
			  </td>
         </tr>
       </table>
      </td>
    </tr>
    
    <tr>
      <td width="180" valign="top">
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` WHERE `align`='L' ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_l($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_l("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>
			
			<p><img src="stiliai/default/images/tarpine.jpg" width="180" height="0" /></p></td>
      <td valign="top">
			<div class="title">Šiuo metu svetainėje: <?php echo $online; ?></div>
			<div class="vidus">
		<?php
			if (isset($strError)) { klaida("Klaida",$strError); }
			if (!isset($_SESSION['username'])) {
			 	lentele($conf['Pavadinimas'],$conf['Apie']);
			}
			include($page.".php");
		?>
		</div>		</td>
	  <td width="180" valign="top">
			<?php
			$sql_p = mysql_query1("SELECT SQL_CACHE * FROM `".LENTELES_PRIESAGA."panel` WHERE `align`='R' ORDER BY `place` ASC");
			while ($row_p = mysql_fetch_assoc($sql_p)) {
				if (is_file("paneles/".$row_p['file'])) { 
				include ("paneles/".$row_p['file']);
					if (!isset($title)) { $title = $row_p['panel']; }
					if ($row_p['show'] == 'Y' && isset($text) && !empty($text)) {
						lentele_r($title,$text); unset($title,$text);
					}
					elseif (isset($text) && !empty($text)) { 
						echo $text;
						unset($text);
					}
				}
				else { echo lentele_r("Klaida","Tokios paneles nera",$row_p['file']); }
			}
			unset($sql_p,$row_p);
			?>
	  
	    <p><img src="stiliai/default/images/tarpine.jpg" width="180" height="0" /></p></td>
	  
    </tr>
  </table>
</div>
<?php
$m2 = explode(" ", microtime());
$etime = $m2[1] + $m2[0];
$ttime = ($etime - $stime);
$ttime = number_format($ttime, 7);
if ($conf['Render'] == 1) { $ttime = "Sugeneruotas per: ".apvalinti($ttime,2)."s." ; }
else { $ttime = ''; }
copyright("$ttime\n".$conf['Copyright']."");
if (defined("LEVEL") && LEVEL > 20) { copyright("Mysql uzklausu: $mysql_num"); }
unset($extra,$meniu,$text,$ttime);
?></div>
<script class="javascript">dp.SyntaxHighlighter.HighlightAll('code');</script>
<script language="javascript" src="javascript/boxover.js" type="text/javascript"></script>
</body>
</html>
